package Two;
import static java.lang.Math.*;
/*java.lang:系统常用基础类（String，Object），此包从JDK1.1后自动导入
java.lang.reflect:反射编程包
java.net:进行网络编程开发包
java.sql:进行数据库开发的支持包
java.util:Java提供的工具程序包（集合类等）非常重要
java.io:I/O编程开发包*/

import org.w3c.dom.ls.LSOutput;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86138
 * Date: 2024-05-26
 * Time: 23:13
 */
public class Date {
    private int year;
    private int month;
    private int day;
    public static int classname = 1;


    public void print(){
        System.out.println(this.year + "年" + this.month + "月" + this.day + "日");
    }


    public void setDate(int year, int month, int day){
        this.year = year;
        this.month = month;
        this.day = day;
    }


    public Date(){
        this(2024,5,5);
        System.out.println("这个是不带参数的构造方法");
    }


    public Date(int year, int month, int day){
        System.out.println("这个是带有三个参数的构造方法");
        this.year = year;
        this.month = month;
        this.day = day;
    }

    public int getYear() {
        return year;
    }

    public void setYear(int year) {
        this.year = year;
    }

    public int getMonth() {
        return month;
    }

    public void setMonth(int month) {
        this.month = month;
    }

    public int getDay() {
        return day;
    }

    public void setDay(int day) {
        this.day = day;
    }

    public Date(int year) {
        this.year = year;
    }


    public static void main(String[] args) {
        double a = 3;
        double c = 4;
        double ret = pow(a,3);
        System.out.println("ret = " + ret);
    }
}
